package edu.cs3240.nfa;

import java.util.ArrayList;
import java.util.Collection;

public class CharacterSet {
	
	private ArrayList<Character> letters;
	
	public CharacterSet(Collection<Character> letters)
	{
		this.letters = new ArrayList<Character>(letters);
	}
	public CharacterSet(char letter)
	{
		this.letters = new ArrayList<Character>();
		letters.add(letter);
	}
	
	@Override
	public String toString()
	{
		if(letters != null && letters.size() > 0)
		{
			return letters.get(0).toString();
		}
		else
			return "";
	}
	

}
